package com.lipy.microweb.config;

import com.lipy.ribbon.config.RibbonLoadbalanceMicroOrderConfig;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.Configuration;

/**
 * 针对micro-order 的ribbon 设置
 */
@Configuration
@RibbonClients(value = {
        // micro-order配置
        @RibbonClient(name = "micro-order",configuration = RibbonLoadbalanceMicroOrderConfig.class)})
//@RibbonClients(defaultConfiguration = RibbonLoadbalanceMicroOrderConfig.class) 全局配置
public class LoadBalanceConfig {
}
